#!/bin/bash
#
#  Masalla Icon Theme
#
#  Copyright 2018 hayder majid <hayder@riseup.net>
#  
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 3 of the License, or
#  (at your option) any later version.
#  
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#  
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, you can download it from here:
#  https://www.gnu.org/licenses/gpl-3.0.html

# cleaning script for masalla-colors 
# Written by Hayder Majid(Hayder Ctee) <hayder@riseup.net>
if [[ -d /usr/share/icons/masalla-black ]]; then
echo "folder found in root";
rm -Rf /usr/share/icons/masalla-red;
rm -Rf /usr/share/icons/masalla-red-dark;
rm -Rf /usr/share/icons/masalla-yellow;
rm -Rf /usr/share/icons/masalla-yellow-dark;
rm -Rf /usr/share/icons/masalla-grey;
rm -Rf /usr/share/icons/masalla-grey-dark;
rm -Rf /usr/share/icons/masalla-green;
rm -Rf /usr/share/icons/masalla-green-dark;
rm -Rf /usr/share/icons/masalla-violet;
rm -Rf /usr/share/icons/masalla-violet-dark;
rm -Rf /usr/share/icons/masalla-brown;
rm -Rf /usr/share/icons/masalla-brown-dark;
rm -Rf /usr/share/icons/masalla-black;
rm -Rf /usr/share/icons/masalla-black-dark;
echo "all direcrories was deleted";
fi
if [ -d $HOME/.icons/masalla-black ]; then
echo "folder found in home";
rm -Rf $HOME/.icons/masalla-red;
rm -Rf $HOME/.icons/masalla-red-dark;
rm -Rf $HOME/.icons/masalla-yellow;
rm -Rf $HOME/.icons/masalla-yellow-dark;
rm -Rf $HOME/.icons/masalla-grey;
rm -Rf $HOME/.icons/masalla-grey-dark;
rm -Rf $HOME/.icons/masalla-green;
rm -Rf $HOME/.icons/masalla-green-dark;
rm -Rf $HOME/.icons/masalla-violet;
rm -Rf $HOME/.icons/masalla-violet-dark;
rm -Rf $HOME/.icons/masalla-brown;
rm -Rf $HOME/.icons/masalla-brown-dark;
rm -Rf $HOME/.icons/masalla-black;
rm -Rf $HOME/.icons/masalla-black-dark;
fi

#if [[ $(id -u) -ne 0 ]]; then
#echo "you run script as root";
#rm_r;
#else
#echo "you run script as user";
#rm_u;
#fi



